<?php
ini_set('date.timezone','Asia/Shanghai');
//error_reporting(E_ERROR);
require_once "../lib/WxPay.Api.php";
require_once "WxPay.JsApiPay.php";
require_once 'log.php';
$tools = new JsApiPay();

$reset['money'] = $_GET['money'];
$reset['shopid'] = $_GET['shopid'];
$reset['shopname'] = $_GET['shopname'];
$reset['shopwx'] = $_GET['shopwx'];

$url = "http://www.linked-work.com/wxpay/example/native.php";
$url .= "?rest=".json_encode($reset);
$openId = $tools->getCode($url);
?>
